package com.maybach.web.framework.util;

import com.maybach.common.enums.FinancePayWayEnum;
import com.maybach.common.enums.PartnerStatusEnum;
import com.maybach.common.enums.order.InvoiceTypeEnum;
import com.maybach.common.enums.order.OrderStatusEnum;

/**
 * Created by zhaoshuai on 16/2/29.
 */
public class LoanOrderStatusTool {

    public String getDescByCode(Integer status) {
        return OrderStatusEnum.getDescByCode(status);
    }

    public String getFinancePayWayDesc(String name) {
        return FinancePayWayEnum.getDescByName(name);
    }

    public String getPartStatusDesc(Integer code) {
        return PartnerStatusEnum.getDescByCode(code.intValue());
    }

    public String getInvoiceDesc(String name) {
        return InvoiceTypeEnum.getDescByName(name);
    }

}
